using System;

namespace ViScript.Core.Exceptions
{
    public class ViScriptExecutionException : ViScriptClientException
    {
        private readonly ISentence sentence;

        public ViScriptExecutionException(ISentence sentence, Exception innerException)
            : base("execute sentence failed", innerException)
        {
            this.sentence = sentence;
        }

        public ISentence Sentence
        {
            get { return sentence; }
        }
    }
}